package com.dq.service.sys.user;

import com.dq.controller.in.user.SysUserQuery;
import com.dq.domain.sys.user.user.BossUser;
import com.dq.exception.customException.AdminException;
import com.dq.controller.in.user.OrgUserQuery;
import com.dq.domain.sys.user.user.OrgUser;
import com.dq.vo.Vo;

import java.util.List;
import java.util.Map;

/**
 * @author liuhui
 * @date 2019/12/3 0003 10:00:31
 */
public interface OrgUserService {
    /**
     * 查询列表 条件
     * @param orgUserQuery
     * @return
     * @throws AdminException
     */
    public Map<String, Object> getOrgListHql(OrgUserQuery orgUserQuery) throws AdminException;

    public OrgUser save(OrgUser orgUser) throws AdminException;
    public OrgUser initObject(OrgUser orgUser) throws AdminException;

    public OrgUser update(OrgUser orgUser) throws AdminException;

    public List<BossUser> getOrgUserListByRoles(SysUserQuery sysUserQuery, int... index);
    public Long getOrgUserCountByRoles(SysUserQuery sysUserQuery, int... index);
}
